package com.cn.dao;

import java.io.Serializable;
import java.util.List;

public interface BasicDao<T> {
	public void add(T obj);
	
	public T findById(Class clazz,Serializable id);

	public void delete(T t);
	
	public List<T> executeQuery(String hql, Object[] paras);

	public List<T> findOneValue(String obj,String tableName);

	public T uniqueQuery(String hql, Object[] paras);

	public List<T> excuteQuery(String hql, Object[] paras, int pageSize,int pageNow);
	
	public int getCountPage(String obj,int pageSize,int pageNow); 
	
	public void excuteUpdate(String hql, Object[] paras);
	
	//多个操作绑定在一起
	public void excuteUpdate(String hql[], Object[][] paras);
}
